package com.start.dataSource;

import com.start.common.registers.BaseScanPackageRegister;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

@Configuration
@ComponentScan({StartDataSourceAutoConfiguration.PACKAGE_NAME})
@MapperScan({StartDataSourceAutoConfiguration.PACKAGE_NAME + ".mappers.**"})
public class StartDataSourceAutoConfiguration implements BaseScanPackageRegister {
    public static final String PACKAGE_NAME = "com.start.dataSource";

    @Override
    public String[] getPackages() {
        return new String[]{PACKAGE_NAME};
    }


}
